\hypertarget{class_mathematica_translator_1_1_m_t_binary_operator}{
\section{\-Mathematica\-Translator\-:\-:\-M\-T\-Binary\-Operator \-Class \-Reference}
\label{class_mathematica_translator_1_1_m_t_binary_operator}\index{\-Mathematica\-Translator\-::\-M\-T\-Binary\-Operator@{\-Mathematica\-Translator\-::\-M\-T\-Binary\-Operator}}
}


{\ttfamily \#include $<$\-M\-T\-Binary\-Operator.\-hpp$>$}

\-Inheritance diagram for \-Mathematica\-Translator\-:\-:\-M\-T\-Binary\-Operator\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{class_mathematica_translator_1_1_m_t_binary_operator}
\end{center}
\end{figure}
\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class_mathematica_translator_1_1_m_t_binary_operator_ad44f1c986123feddc7d6ad6d1adb34ea}{
{\bfseries \-M\-T\-Binary\-Operator} (\hyperlink{class_mathematica_translator_1_1_m_t_expression}{\-M\-T\-Expression} \&expr1, const std\-::string \&op, \hyperlink{class_mathematica_translator_1_1_m_t_expression}{\-M\-T\-Expression} \&expr2)}
\label{class_mathematica_translator_1_1_m_t_binary_operator_ad44f1c986123feddc7d6ad6d1adb34ea}

\item 
virtual std\-::string $\ast$ \hyperlink{class_mathematica_translator_1_1_m_t_binary_operator_a80adb8d79c79bb60b3fddb874d2bdf47}{generate\-Code} (\hyperlink{class_mathematica_translator_1_1_code_gen_context}{\-Code\-Gen\-Context} \&context)
\item 
\hypertarget{class_mathematica_translator_1_1_m_t_binary_operator_a2e5099ebd69b137bbba8f896dfd82214}{
virtual std\-::string $\ast$ \hyperlink{class_mathematica_translator_1_1_m_t_binary_operator_a2e5099ebd69b137bbba8f896dfd82214}{get\-Type} ()}
\label{class_mathematica_translator_1_1_m_t_binary_operator_a2e5099ebd69b137bbba8f896dfd82214}

\begin{DoxyCompactList}\small\item\em \-Get the best type that fits the underlying expression. \end{DoxyCompactList}\item 
\hypertarget{class_mathematica_translator_1_1_m_t_binary_operator_a5980b939182fa6f263dc1f36d4d8c2ec}{
virtual int {\bfseries get\-Class\-Type} ()}
\label{class_mathematica_translator_1_1_m_t_binary_operator_a5980b939182fa6f263dc1f36d4d8c2ec}

\end{DoxyCompactItemize}
\subsection*{\-Public \-Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class_mathematica_translator_1_1_m_t_binary_operator_acb601649fc84a084560c9a43fe1b9edf}{
std\-::string {\bfseries op}}
\label{class_mathematica_translator_1_1_m_t_binary_operator_acb601649fc84a084560c9a43fe1b9edf}

\item 
\hypertarget{class_mathematica_translator_1_1_m_t_binary_operator_a6627da235ea60d6237bd3c5993e3477a}{
\hyperlink{class_mathematica_translator_1_1_m_t_expression}{\-M\-T\-Expression} \& {\bfseries expr1}}
\label{class_mathematica_translator_1_1_m_t_binary_operator_a6627da235ea60d6237bd3c5993e3477a}

\item 
\hypertarget{class_mathematica_translator_1_1_m_t_binary_operator_ac474c83d90627c8e1b7272e7dbc76f0e}{
\hyperlink{class_mathematica_translator_1_1_m_t_expression}{\-M\-T\-Expression} \& {\bfseries expr2}}
\label{class_mathematica_translator_1_1_m_t_binary_operator_ac474c83d90627c8e1b7272e7dbc76f0e}

\item 
\hypertarget{class_mathematica_translator_1_1_m_t_binary_operator_a8e907d016d2a4f643456f82608a4c89b}{
\hyperlink{class_mathematica_translator_1_1_code_gen_context}{\-Code\-Gen\-Context} $\ast$ {\bfseries my\-Context}}
\label{class_mathematica_translator_1_1_m_t_binary_operator_a8e907d016d2a4f643456f82608a4c89b}

\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}
\-Class that represents operation in mathematics calculations. \-It creates its own calculus tree to keep operators precedence for proper evaluation 

\subsection{\-Member \-Function \-Documentation}
\hypertarget{class_mathematica_translator_1_1_m_t_binary_operator_a80adb8d79c79bb60b3fddb874d2bdf47}{
\index{\-Mathematica\-Translator\-::\-M\-T\-Binary\-Operator@{\-Mathematica\-Translator\-::\-M\-T\-Binary\-Operator}!generate\-Code@{generate\-Code}}
\index{generate\-Code@{generate\-Code}!MathematicaTranslator::MTBinaryOperator@{\-Mathematica\-Translator\-::\-M\-T\-Binary\-Operator}}
\subsubsection[{generate\-Code}]{\setlength{\rightskip}{0pt plus 5cm}std\-::string $\ast$ \-Mathematica\-Translator\-::\-M\-T\-Binary\-Operator\-::generate\-Code (
\begin{DoxyParamCaption}
\item[{{\bf \-Code\-Gen\-Context} \&}]{context}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{class_mathematica_translator_1_1_m_t_binary_operator_a80adb8d79c79bb60b3fddb874d2bdf47}
\-Main method to print the result of translating into \-C++ from \-Mathematica 
\begin{DoxyParams}{\-Parameters}
{\em context} & current variable context \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
allocated string with translation 
\end{DoxyReturn}


\-Reimplemented from \hyperlink{class_mathematica_translator_1_1_m_t_expression_ae60846398fde87b09c242b5ea263586e}{\-Mathematica\-Translator\-::\-M\-T\-Expression}.



\-The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
\-M\-T\-Binary\-Operator.\-hpp\item 
\-M\-T\-Binary\-Operator.\-cpp\end{DoxyCompactItemize}
